--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
MD5.h 6bbcaa0ba959cfcb3aaff398339fa09cce054fd6 (6bbcaa0b) Text, 1.48 KB
Tff7b72#Tff7b72ifndef MD5_h
Tff7b72#Tff7b72define MD5_h
Tff7b72#Tff7b72include T8b949e"Arduino.h"
T8b949e/*
* This is an OpenSSL-compatible implementation of the RSA Data Security,
* Inc. MD5 Message-Digest Algorithm (RFC 1321).
*
* Written by Solar Designer <solar at openwall.com> in 2001, and placed
* in the public domain. There's absolutely no warranty.
*
* This differs from Colin Plumb's older public domain implementation in
* that no 32-bit integer data type is required, there's no compile-time
* endianness configuration, and the function prototypes match OpenSSL's.
* The primary goals are portability and ease of use.
*
* This implementation is meant to be fast, but not as fast as possible.
* Some known optimizations are not included to reduce source code size
* and avoid compile-time configuration.
*/
T8b949e/*
* Updated by Scott MacVicar for arduino
* <scott@macvicar.net>
*/
Tff7b72#Tff7b72include T8b949e<string.h>
Tff7b72typedef Tffa657unsigned Tffa657long Te6edf3MD5_u32plusTb4b4b4;
Tff7b72typedef Tff7b72struct Tb4b4b4{
Te6edf3MD5_u32plus Te6edf3loTb4b4b4, Te6edf3hiTb4b4b4;
Te6edf3MD5_u32plus Te6edf3aTb4b4b4, Te6edf3bTb4b4b4, Te6edf3cTb4b4b4, Te6edf3dTb4b4b4;
Tffa657unsigned Tffa657char Te6edf3bufferTb4b4b4[T79c0ff64Tb4b4b4]Tb4b4b4;
Te6edf3MD5_u32plus Te6edf3blockTb4b4b4[T79c0ff16Tb4b4b4]Tb4b4b4;
Tb4b4b4} Te6edf3MD5_CTXTb4b4b4;
Te6edf3class Te6edf3MD5
Tb4b4b4{
Te6edf3publicTff7b72:
Te6edf3MD5Tb4b4b4(Tb4b4b4)Tb4b4b4;
Tff7b72static Tffa657unsigned Tffa657charTff7b72* Td2a8ffmake_hashTb4b4b4(Tffa657char Tff7b72*Te6edf3argTb4b4b4)Tb4b4b4;
Tff7b72static Tffa657unsigned Tffa657charTff7b72* Td2a8ffmake_hashTb4b4b4(Tffa657char Tff7b72*Te6edf3argTb4b4b4,Tffa657size_t Te6edf3sizeTb4b4b4)Tb4b4b4;
Tff7b72static Tffa657charTff7b72* Td2a8ffmake_digestTb4b4b4(Tff7b72const Tffa657unsigned Tffa657char Tff7b72*Te6edf3digestTb4b4b4, Tffa657int Te6edf3lenTb4b4b4)Tb4b4b4;
Tff7b72static Tff7b72const Tffa657void Tff7b72*Td2a8ffbodyTb4b4b4(Tffa657void Tff7b72*Te6edf3ctxBufTb4b4b4, Tff7b72const Tffa657void Tff7b72*Te6edf3dataTb4b4b4, Tffa657size_t Te6edf3sizeTb4b4b4)Tb4b4b4;
Tff7b72static Tffa657void Td2a8ffMD5InitTb4b4b4(Tffa657void Tff7b72*Te6edf3ctxBufTb4b4b4)Tb4b4b4;
Tff7b72static Tffa657void Td2a8ffMD5FinalTb4b4b4(Tffa657unsigned Tffa657char Tff7b72*Te6edf3resultTb4b4b4, Tffa657void Tff7b72*Te6edf3ctxBufTb4b4b4)Tb4b4b4;
Tff7b72static Tffa657void Td2a8ffMD5UpdateTb4b4b4(Tffa657void Tff7b72*Te6edf3ctxBufTb4b4b4, Tff7b72const Tffa657void Tff7b72*Te6edf3dataTb4b4b4, Tffa657size_t Te6edf3sizeTb4b4b4)Tb4b4b4;
Tb4b4b4}Tb4b4b4;
Tff7b72#Tff7b72endif
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────